﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Td.Additional.ComponentModel;
using System.ComponentModel;

namespace TestApp.Xml
{
    [IgnoreEmptyLists]
    public class Session : BaseComponent
    {
        public Session Owner { get; set; }

        public String Name { get; set; }

        public int Integer { get; set; }

        public Boolean BoolValue { get; set; }

        public DateTime Time { get; set; }

        [Description("Kontaktliste")]
        [ReferenceList]
        public List<Contact> Contacts { get; set; }

        public List<String> Strings { get; set; }

        public Session()
            : base()
        {
            Contacts = new List<Contact>();
            Strings = new List<string>();
            Owner = this;
        }

        public Session(String name)
            : this()
        {
            Name = name;
        }
    }
}